ViewConfigurationCompat

Helper for accessing features in ViewConfiguration.

Functions

Link copied to clipboard
Link copied to clipboard
open fun getScaledMaximumFlingVelocity(@NonNull context: Context, @NonNull config: ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Maximum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.
Link copied to clipboard
open fun getScaledMinimumFlingVelocity(@NonNull context: Context, @NonNull config: ViewConfiguration, inputDeviceId: Int, axis: Int, source: Int): Int
Minimum absolute value of velocity to initiate a fling for a motion generated by an InputDevice with an id of inputDeviceId, from an input source and on a given motion event axis.
Link copied to clipboard
Report if the device has a permanent menu key available to the user, in a backwards compatible way.
Check if shortcuts should be displayed in menus.